import Vue from 'vue'

import "lib-flexible/flexible.js"

import '@/assets/style/main.css'

import App from './App.vue'

import router from './router/routesMap'

import waterfall from 'vue-waterfall2'

import NProgress from 'nprogress';

import 'nprogress/nprogress.css';

router.beforeEach((to, from, next) => {
    NProgress.start();
    next();
})

router.afterEach(() => {
    NProgress.done();
})

Vue.config.productionTip = false

Vue.use(waterfall)

new Vue({
    router,
    render: h => h(App),
}).$mount('#app')
